<?php
/*
 * Created on 2013-5-25
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 * 
 * @package liaodou
 * @author leimengcheng<leimengcheng@iicall.com>
 * @date 2013-05-25
 */

class Userweibo_model extends CI_Model{
	
	/**
	 * to operate table
	 */
	public static $TABLE = 'tbl_UserWeibo';
	
	/**
	 * constructor
	 */
	public function __construct()
	{
		parent::__construct();
	}
	
	public function getUserIdByUsername($username)
	{
		$sql = sprintf("SELECT `UserID` FROM `ipphone_user` where username = '13414092220'");	
	}
	
	/**
	 * 获得用户的userid信息
	 * 
	 * @param string $username
	 */
	public function getUserWeibo($username)
	{
		$sql = sprintf("SELECT `id` FROM `%s` WHERE `UserName` = '%s' and LENGTH(WeiboID) > 2",self::TABLE,$username);
		
	}
	
}
?>
